import service from '@/utils/request'

// @Tags BrandData
// @Summary 创建品牌库
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.BrandData true "创建品牌库"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /brandData/createBrandData [post]
export const createBrandData = (data) => {
  return service({
    url: '/brandData/createBrandData',
    method: 'post',
    data
  })
}

// @Tags BrandData
// @Summary 删除品牌库
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.BrandData true "删除品牌库"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /brandData/deleteBrandData [delete]
export const deleteBrandData = (params) => {
  return service({
    url: '/brandData/deleteBrandData',
    method: 'delete',
    params
  })
}

// @Tags BrandData
// @Summary 批量删除品牌库
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除品牌库"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /brandData/deleteBrandData [delete]
export const deleteBrandDataByIds = (params) => {
  return service({
    url: '/brandData/deleteBrandDataByIds',
    method: 'delete',
    params
  })
}

// @Tags BrandData
// @Summary 更新品牌库
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.BrandData true "更新品牌库"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /brandData/updateBrandData [put]
export const updateBrandData = (data) => {
  return service({
    url: '/brandData/updateBrandData',
    method: 'put',
    data
  })
}

// @Tags BrandData
// @Summary 用id查询品牌库
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.BrandData true "用id查询品牌库"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /brandData/findBrandData [get]
export const findBrandData = (params) => {
  return service({
    url: '/brandData/findBrandData',
    method: 'get',
    params
  })
}

// @Tags BrandData
// @Summary 分页获取品牌库列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取品牌库列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /brandData/getBrandDataList [get]
export const getBrandDataList = (params) => {
  return service({
    url: '/brandData/getBrandDataList',
    method: 'get',
    params
  })
}
